package web.gkw.service.impl;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import org.springframework.stereotype.Component;

import web.gkw.dao.UserDAO;
import web.gkw.model.User;
import web.gkw.service.UserService;

@Component("userService")
public class UserServiceImpl implements UserService {

	
	@Resource
	private UserDAO userDAO;
	
	
	public UserDAO getUserDAO() {
		return userDAO;
	}


	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}


	@Override
	public void addUser(User user) {
		// TODO Auto-generated method stub
		userDAO.addUser(user);
	}


	@Override
	public User login(User user) {
		// TODO Auto-generated method stub
		return userDAO.login(user);
	}

}
